package com.mew.common.rest.gold;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * @author tansonglin
 * @date 2021/8/11 18:18
 */
@Data
@ToString(callSuper = true)
public class CustomerResponse extends ZebraBaseMessage<CustomerResponse> {
    private List<CustomersMessage> customersMessageList;
    @Override
    public void write(ByteBuf b) {
        writeInt(b,customersMessageList.size());
        for (CustomersMessage customersMessage : customersMessageList) {
            customersMessage.write(b);
        }
    }

    @Override
    public CustomerResponse read(ByteBuf byteBuf) {
        return null;
    }
}
